<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<h2>Incoming invites</h2>

<table style="width: 600px; border-collapse: collapse;">
    <tr>
        <td>
            Who invited
        </td>
        <td>
            Clan title
        </td>
        <td>
            When invited
        </td>
        <td>
            Status
        </td>
        <td>
            
        </td>
    </tr>
    <c:forEach items="${invites}" var="invite">
        <tr>
            <td>
                ${invite.owner.title}
            </td>
            <td>
                ${invite.owner.specificUser.clan.title}
            </td>
            <td>
                ${VoidHelper.date(invite.created)}
            </td>
            <td>
                ${invite.status}
            </td>
            <td>
                <a href="bandit.htm?act=acceptJoinClan&id=${invite.id}">Join clan</a>
                <br/>
                <a href="bandit.htm?act=refuseJoinClan&id=${invite.id}">Refuse</a>
            </td>
        </tr>
    </c:forEach>
</table>